package com.woniuxy.mqconsumer.mapper;

import com.woniuxy.mqconsumer.entity.EsBook;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

public interface BookMapper {
    @Update("update t_book set storecount = storecount + #{buyCount} where id= #{bookid}")
    int updateBookStoreCountById(@Param("bookid") Long bookid, @Param("buyCount") int buyCount);

    EsBook selectEsBookByKey(Long bookId);
}
